<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JSDoc: Source: constants/api.js</title>

    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

    <h1 class="page-title">Source: constants/api.js</h1>

    



    
    <section>
        <article>
            <pre class="prettyprint source linenums"><code>/** @module constants/api */

/**
 * 移动端Hybird接口
 * @readonly
 * @enum {string}
 */
export const MOBILE_API = {
    /** 
     * 下载 
     */ 
    DOWNLOAD_URL: 'sknowbox://method',
    /**
     * 端上分享接口
     * @param {string} platform 平台(WX, WXCircle, QQ, QQZone)
     * @param {string} data JSON格式的数据
     * @param {string} jsCallBack 回调函数名,一个全局函数,回调参数("success"完成分享, "fail"分享失败, "cancel"取消分享)
     */
    SHARE_URL: 'hybird://method/doShare',
    /** 
     * 打开一个Native窗口
     * @param {string} url 要打开的窗口地址
     * @param {string} title 要打开的窗口名称
     */
    OPEN_NEW_WINDOW_URL: 'hybird://method/openNewWindow',
    /**
     * 打开用户默认浏览器
     * @param {string} url 浏览器默认打开的地址
     */
    OPEN_BROWSER_URL: 'hybird://method/openBrowser',
};

/**
 * 服务端API接口
 * @readonly
 * @enum {string}
 */
export const WEB_API = {
    /**
     * 获取微信配置
     */
    WX_CONFIG_URL: '',
    /** 
     * 服务端域名配置
     */
    HOST: 'http://api.example.com',
    /**
     * 示例接口地址
     */
    EXAMPLE_DATA_URL: '/list'
};
</code></pre>
        </article>
    </section>




</div>

<nav>
    <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-components_containers.html">components/containers</a></li><li><a href="module-components_dumb.html">components/dumb</a></li><li><a href="module-constants_api.html">constants/api</a></li><li><a href="module-constants_http.html">constants/http</a></li><li><a href="module-net_httpProxy.html">net/httpProxy</a></li><li><a href="module-utils.html">utils</a></li></ul><h3>Classes</h3><ul><li><a href="module-components_containers.Welcome.html">Welcome</a></li><li><a href="module-components_dumb.MarqueeLine.html">MarqueeLine</a></li><li><a href="module-utils.QueryString.html">QueryString</a></li><li><a href="module-utils.Storage.html">Storage</a></li></ul>
</nav>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Feb 09 2017 17:36:20 GMT+0800 (CST)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
